<template>
    <h3 class = "top-title clearfix">
        <span class = "left">{{ title }}</span>
        <span class = "right" @click = "toList">更多>></span>
    </h3>
</template>
<script>
export default {
    name: "topTitle",
    data(){
        return {

        }
    },
    props: ["url","title"],
    methods: {
        //跳转到列表页
        toList(){
            wx.navigateTo({ url: this.url });
        }
    }
}
</script>
<style lang = "scss" scoped>
    .top-title{
        line-height: 50rpx;
        .left{
            float: left;
            color: #333;
            font-size: 36rpx;
        }
        .right{
            float: right;
            color: #999;
            font-size: 24rpx;
        }
    }
</style>